import request from '@/utils/request'
import API from './constants'

export const findCategories = () => request({
  url: API.CATEGORY_API,
  method: 'GET'
})

export const findSubCategories = id => request({
  url: API.SUB_CATEGORY_API + '/' + id,
  method: 'GET'
})
